import request from '@/utils/request'

// 查询工单列表列表
export function listListPage(query) {
  // console.log(query);
  return request({
    url: '/listPage/listPage/list',
    method: 'get',
    params: query
  })
}

// 查询单个工单列表详细
export function getListPage(repairId) {
  console.log(repairId);
  return request({
    url: '/listPage/listPage/' + repairId,
    method: 'get'
  })
}

// 新增工单列表
export function addListPage(data) {
  // console.log(data);
  return request({
    url: '/listPage/listPage',
    method: 'post',
    data: data
  })
}

// 高级搜索
export function updateListPage(data) {
  return request({
    url: '/listPage/listPage',
    method: 'put',
    data: data
  })
}

// 删除工单列表
export function delListPage(repairId) {
  return request({
    url: '/listPage/listPage/' + repairId,
    method: 'delete'
  })
}
// 回复按钮跳转页面
export function replyParticulars(data) {
  return request({
    url: '/listPage/listPage/reply',
    method: 'post',
    data: data
  })
}
